<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/Footer.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\index.html">All files</a> / <a href="index.html">src/components</a> Footer.vue
    </h1>
    <div class='clearfix'>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div class="footers"&gt;
    &lt;!-- &lt;van-tabbar v-model="footer_a" active-color="#fd5b5a" inactive-color="#000" route  &gt;
		      &lt;van-tabbar-item icon="wap-home-o" to="/" &gt;首页&lt;/van-tabbar-item&gt;
		      &lt;van-tabbar-item icon="like-o" to="/Message"&gt;消息&lt;/van-tabbar-item&gt;
		      &lt;van-tabbar-item icon="description" to="/News"&gt;新闻&lt;/van-tabbar-item&gt;
		      &lt;van-tabbar-item icon="user-o"  to="/Member"&gt;我的&lt;/van-tabbar-item&gt;
		    &lt;/van-tabbar&gt; --&gt;
    &lt;div class="van-hairline--top-bottom van-tabbar van-tabbar--fixed" style="background-color: black;"&gt;
      &lt;div class="van-tabbar-item van-tabbar-item--active" @click="shouye"&gt;
        &lt;div class="van-tabbar-item__icon"&gt;
          &lt;img v-show="act!=1" src="/static/image/bot1.png" alt=""&gt;
          &lt;img v-show="act==1" src="/static/image/bot1act.png" alt=""&gt;
        &lt;/div&gt;
        &lt;div :class="act==1?'van-tabbar-item__text act':'van-tabbar-item__text'"&gt;首页&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="van-tabbar-item" @click="$router.push('/Ranking')"&gt;
        &lt;div class="van-tabbar-item__icon"&gt;
          &lt;img v-show="act!=2" src="/static/image/bot2.png" alt=""&gt;
          &lt;img v-show="act==2" src="/static/image/bot2act.png" alt=""&gt;
        &lt;/div&gt;
        &lt;div :class="act==2?'van-tabbar-item__text act':'van-tabbar-item__text'"&gt;排行榜&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="van-tabbar-item" @click="goApply"&gt;
        &lt;div class="van-tabbar-item__icon"&gt;
          &lt;img v-show="act!=3" src="/static/image/bot3.png" alt=""&gt;
          &lt;img v-show="act==3" src="/static/image/bot3act.png" alt=""&gt;
        &lt;/div&gt;
        &lt;div :class="act==3?'van-tabbar-item__text act':'van-tabbar-item__text'"&gt;我要报名&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="van-tabbar-item" @click="$router.push('/Huodong')"&gt;
        &lt;div class="van-tabbar-item__icon"&gt;
          &lt;img v-show="act!=4" src="/static/image/bot4.png" alt=""&gt;
          &lt;img v-show="act==4" src="/static/image/bot4act.png" alt=""&gt;
        &lt;/div&gt;
        &lt;div :class="act==4?'van-tabbar-item__text act':'van-tabbar-item__text'"&gt;活动详情&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&lt;style&gt;
.footers {
  position: relative;
  z-index: 6;
}
.van-hairline--top-bottom::after,
.van-hairline-unset--top-bottom::after {
  border-width: 0px 0;
}
&nbsp;
.van-tabbar-item {
  border-top: 1px solid #ebedf0;
}
.footers .van-tabbar--fixed {
  max-width: 750px;
}
&lt;/style&gt;
&lt;style scoped&gt;
.footers .van-tabbar-item__icon img {
  height: 28px;
}
.footers .van-tabbar-item__text {
  font-size: 12px;
  color: #cccccc;
}
.footers .van-tabbar-item__text.act {
  color: #fc6e20;
}
&lt;/style&gt;
&lt;script&gt;
<span class="cstat-no" title="statement not covered" >import { Toast } from 'vant';</span>
import { Dialog } from 'vant';
export default {
<span class="fstat-no" title="function not covered" >  data() {</span>
<span class="cstat-no" title="statement not covered" >    return {</span>
      footer_a: 0,
      act: 1,
      iosUrl: 'https://apps.apple.com/cn/app/%E8%9C%82%E5%B7%A2%E5%BD%B1%E8%A7%86%E8%81%94%E7%9B%9F/id1568825575?l=en',
      androidUrl: 'https://a.app.qq.com/o/simple.jsp?pkgname=com.lucky.luckyclient',
      //环境 1安卓 2苹果
      env: null,
    }
  },
<span class="fstat-no" title="function not covered" >  mounted() {</span>
    //判断环境
<span class="cstat-no" title="statement not covered" >    let u = navigator.userAgent,</span>
      isAndroid = u.indexOf('Android') &gt; -1 || u.indexOf('Adr') &gt; -1,//android终端
<span class="cstat-no" title="statement not covered" >      isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),//ios</span>
<span class="cstat-no" title="statement not covered" >      isWx = !!u.match(/MicroMessenger/i);//微信</span>
<span class="cstat-no" title="statement not covered" >    if (isWx) {</span>
      // Toast('请使用浏览器打开页面')
    }
<span class="cstat-no" title="statement not covered" >    if (isAndroid) {</span>
      // Toast('安卓')
<span class="cstat-no" title="statement not covered" >      this.env = 1</span>
    }
<span class="cstat-no" title="statement not covered" >    if (isiOS) {</span>
      // Toast('苹果')
<span class="cstat-no" title="statement not covered" >      this.env = 2</span>
    }
&nbsp;
  },
  watch: {
    $route: {
<span class="fstat-no" title="function not covered" >      handler(to, form) {</span>
<span class="cstat-no" title="statement not covered" >        console.log(1111);</span>
<span class="cstat-no" title="statement not covered" >        console.log(to, form);</span>
<span class="cstat-no" title="statement not covered" >        switch (to.path) {</span>
          case '/Ranking':
<span class="cstat-no" title="statement not covered" >            this.act = 2</span>
<span class="cstat-no" title="statement not covered" >            console.log(222);</span>
<span class="cstat-no" title="statement not covered" >            break;</span>
          case '/Huodong':
<span class="cstat-no" title="statement not covered" >            this.act = 4</span>
<span class="cstat-no" title="statement not covered" >            break</span>
          case '/Memberinfo':
<span class="cstat-no" title="statement not covered" >            this.act = 3</span>
<span class="cstat-no" title="statement not covered" >            break</span>
          default:
<span class="cstat-no" title="statement not covered" >            this.act = 1</span>
<span class="cstat-no" title="statement not covered" >            break;</span>
        }
      },
      immediate: true
    }
&nbsp;
  },
  methods: {
<span class="fstat-no" title="function not covered" >    goto() {</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >      this.$router.push("/Index")</span>
&nbsp;
    },
<span class="fstat-no" title="function not covered" >    shouye() {</span>
<span class="cstat-no" title="statement not covered" >      location.href = '/'</span>
    },
<span class="fstat-no" title="function not covered" >    goApply() {</span>
<span class="cstat-no" title="statement not covered" >      var _this = this</span>
<span class="cstat-no" title="statement not covered" >      if (navigator.userAgent.indexOf("caixuFilmAndriod") != -1 //安卓</span>
        || navigator.userAgent.indexOf("caixuFilmiOS") != -1) {
<span class="cstat-no" title="statement not covered" >        this.$router.push("/Memberinfo")</span>
<span class="cstat-no" title="statement not covered" >        return</span>
      } else {
        //去下载页面
<span class="cstat-no" title="statement not covered" >        this.$router.push("/download")</span>
        //微信
        // let u = navigator.userAgent,
        //   isWx = !!u.match(/MicroMessenger/i);//微信
        // if (isWx) {
        //   Dialog.alert({
        //     message: '请使用浏览器打开页面',
        //   }).then(() =&gt; {
        //     // on close
        //   });
        //   // return
        // }
&nbsp;
      }
    }
  }
};
&lt;/script&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 27 2023 23:16:11 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\sorter.js"></script>
</body>
</html>
